<template lang="html">
<div class="beststockbox">
  <menu-bar :menulist="munulist" routename="beststockbox"></menu-bar>
  <stock-list></stock-list>
</div>
</template>

<script>
import MenuBar from 'components/MenuBar'
import StockList from 'components/greatstock/StockList'
import Constant from 'common/constant'

export default {
  computed: {
    munulist () {
      let list = [
        {
          icon: 'icon-niurenduzaimai',
          text: '牛人都在买'
        },
        {
          icon: 'icon-niurenduzaimai1',
          text: '牛人都在卖'
        },
        {
          icon: 'icon-niurenduzaikan',
          text: '牛人都在看'
        }
      ]
      return list
    }
  },
  components: {
    'menu-bar': MenuBar,
    'stock-list': StockList
  },
  created(){
    this.$router.replace({path: '/greatstock/beststockbox/0'});
//  this.$nextTick(function() {
//    this.$store.dispatch('setGuide',{guideType:Constant.tutorial.ROCKSTOCK_TAB});
//  })
  },
  mounted:function(){
    this.$root.eventHub.$emit('stockbox.active');//触发，HeaderTop移除创建组合按钮，如果有的话。
  }
}
</script>

<style lang="css">
</style>
